package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品查看累加对象 tb_good_click
 * 
 * @author ruoyi
 * @date 2025-07-11
 */
public class TbGoodClick extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点击的商品id */
    @Excel(name = "点击的商品id")
    private Long goodId;

    /** 商品现价 */
    @Excel(name = "商品现价")
    private Long currentPrice;

    /** 点击时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "点击时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date clickTime;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    public void setGoodId(Long goodId) 
    {
        this.goodId = goodId;
    }

    public Long getGoodId() 
    {
        return goodId;
    }

    public void setCurrentPrice(Long currentPrice) 
    {
        this.currentPrice = currentPrice;
    }

    public Long getCurrentPrice() 
    {
        return currentPrice;
    }

    public void setClickTime(Date clickTime) 
    {
        this.clickTime = clickTime;
    }

    public Date getClickTime() 
    {
        return clickTime;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodId", getGoodId())
            .append("currentPrice", getCurrentPrice())
            .append("clickTime", getClickTime())
            .append("userId", getUserId())
            .toString();
    }
}
